package com.leyou.order.client;

import com.leyou.order.pojo.OrderEvaluate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户远程接口
 */
@FeignClient("order-service")
public interface OrderClient {

    @GetMapping("/order/findAll")
    public List<OrderEvaluate> findAll(@RequestParam("spuId") Long spuId);


}
